Skip to content

Fix infoset realisation probability for absent-minded information sets#835

Open
d-kad wants to merge 4 commits intogambitproject:masterfrom
d-kad:infoset-realisation
Open

Fix infoset realisation probability for absent-minded information sets#835
d-kad wants to merge 4 commits intogambitproject:masterfrom
d-kad:infoset-realisation

Conversation

@d-kad
Copy link
Copy Markdown
Contributor

@d-kad d-kad commented Apr 2, 2026

Description

This PR fixes information set realisation probability for games with absent-mindedness. The previous implementation summed node realisation probabilities across all members, double-counting it for the nodes along the same path, with probabilities summing above 1 in this case.

The corrected infoset realisation probability is the probability the information set is visited at least once. The implementation identifies reentry nodes (members whose path from the root passes through the same information set) and excludes them from the sum.

C++ changes:

  • Add m_absentMindedReentries cache in GameTreeRep, populated inside BuildUnreachableNodes (it already correctly treats the absent-minded reentry)
  • Add IsAbsentMindedReentry()
  • Add m_infosetProbs cache, populated inside ComputeRealizationProbs

Test changes:

  • Add test_absent_minded_infoset_prob covering noPR-AM-driver-one-player.efg and noPR-action-AM.efg with uniform probability distributions over actions

Closes #826

@d-kad d-kad requested a review from tturocy April 2, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Information set realisation probability for games with absent-mindedness

1 participant